<!DOCTYPE html>
<html lang="zh-Hans">
<link rel="stylesheet" href="./style.css">


<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--获取设备宽度-->
    <title>Canvas画板</title>
</head>

<body>
    <canvas id="xxx" width="300px" height="300px"></canvas>
    <div id=a ctions class="actions">
        <svg id="pen" class="active icon" aria-hidden="true">
            <use xlink:href="#icon-pen"></use>
        </svg>
        <svg id="eraser" class="icon" aria-hidden="true">
            <use xlink:href="#icon-eraser"></use>
        </svg>
        <svg id="clear" class="icon" aria-hidden="true">
            <use xlink:href="#icon-delete"></use>
        </svg>
        <svg id="download" class="icon" aria-hidden="true">
            <use xlink:href="#icon-download"></use>
        </svg>
    </div>
    <ol class="colors">
        <li id="black" class="black active"></li>
        <li id="red" class="red"></li>
        <li id="green" class="green"></li>
        <li id="blue" class="blue"></li>
    </ol>
    <ol class="sizes">
        <li id="thin" class="thin selected"></li>
        <li id="thick" class="thick"></li>
    </ol>
</body>
<script src="./main.js"></script>
<script src="//at.alicdn.com/t/font_712697_sdg7lrkzbn.js"></script>
<!--iconfont路径没有协议，所以要选好http协议后使用-->

</html>